<template>
  <elm-page-tb>
    <template #top>
      <el-input placeholder="请查询输入内容" prefix-icon='el-icon-search' size="mini" style="width: 250px;" v-model="postData.name" clearable></el-input>
      <right>
        <el-button-group>
          <el-button icon="el-icon-search" size="mini" @click="v_getData()">查询</el-button>
          <elm-open-button url="rwzp_edit" icon="el-icon-edit" title="新增" width="650" height="320"
                           :data="{'edit_type':'create'}">新增</elm-open-button>
        </el-button-group>
      </right>
    </template>
    <elm-table url="/business/pmis/rwzp/GetData" :post-data="postData" :default-expand-all="true" height="100%">
      <el-table-column prop="content" label="任务内容" min-width="100px" header-align="center" show-overflow-tooltip></el-table-column>
      <el-table-column prop="create_person_name" label="派发人" width="110px" align="center"></el-table-column>
      <el-table-column prop="to_person_name" label="接收人" width="110px" align="center"></el-table-column>
      <el-table-column prop="zycd" label="重要程度" width="110px" align="center"></el-table-column>
      <el-table-column prop="status" label="状态" width="110px" align="center"></el-table-column>
      <el-table-column v-if="false" prop="is_creater" label="is_creater" width="160px" align="center"></el-table-column>
      <el-table-column v-if="false" prop="is_to_person" label="is_to_person" width="160px" align="center"></el-table-column>
      <el-table-column prop="sys_createtime" label="派发时间" :formatter="formatDateTime" width="160px" align="center"></el-table-column>
      <el-table-column prop="jh_end_time" label="要求完成时间" :formatter="formatDateTime" width="160px" align="center"></el-table-column>
      <el-table-column prop="sj_end_time" label="实际完成时间" :formatter="formatDateTime" width="160px" align="center"></el-table-column>
      <el-table-column prop="remark" label="备注" min-width="50px" header-align="center" show-overflow-tooltip></el-table-column>
      <el-table-column fixed="right" label="操作" width="160px" align="center">
        <template v-slot="scope">
          <elm-open-button url="rwzp_edit" width="650" height="320" type="text"
                           :data="{'edit_type':'edit','model':scope.row}">编辑</elm-open-button>
          <elm-delete-button type="text" url="/business/pmis/rwzp/Delete" :data="{ id: scope.row.id }">删除</elm-delete-button>
        </template>
      </el-table-column>
    </elm-table>
  </elm-page-tb>
</template>

<script>
export default {
  extends: elmVueBase,
  data() {
    return {
      postData: { name: null },

      noDelFLowCode:{
        'ask_leave':true,
      },
    }
  },
  created() {
  },
  methods: {
    async v_getData(){
      this.tablebinding();
    },

    em: function (s) {
      if (s == null || s == '') { return true; }
      else { return false; }
    },
  }
}
</script>

<style scoped>
</style>